import request from '../request'

const Api = {
  page: '/api/project/xmjc/page',
  xmlist: '/api/project/xmjc/xmlist',

  save: '/api/project/xmjc/save',
  edit: '/api/project/xmjc/edit',

  upload: '/api/project/xmjc/upload',

  zgdata: '/api/project/xmjc/zgdata',
  zgedit: '/api/project/xmjc/zgedit',
  wtzgUpdateState: '/api/project/xmjc/wtzgUpdateState',
}

/** 检查反馈及整改 列表 */
export const page = data => {
  return request.request({
    url: Api.page,
    params: data,
    method: 'GET'
  })
}

/** 检查反馈及整改 项目 列表 */
export const xmlist = data => {
  return request.request({
    url: Api.xmlist,
    params: data,
    method: 'GET'
  })
}

/** 新增检查反馈及整改 */
export const save = data => {
  return request.request({
    url: Api.save,
    data: data,
    method: 'POST'
  })
}

/** 修改检查反馈及整改 */
export const edit = data => {
  return request.request({
    url: Api.edit,
    data: data,
    method: 'PUT'
  })
}

/** 上传附件 */
export const upload = data => {
  return request.request({
    url: Api.upload,
    data: data,
    method: 'POST',
  })
}

/** 项目整改情况 */
export const zgdata = data => {
  return request.request({
    url: Api.zgdata,
    params: data,
    method: 'GET'
  })
}

/** 项目整改情况 操作 */
export const zgedit = data => {
  return request.request({
    url: Api.zgedit,
    data: data,
    method: 'POST'
  })
}

/** 检查反馈及整改 状态处理 */
export const wtzgUpdateState = data => {
  return request.request({
    url: Api.wtzgUpdateState,
    data: data,
    method: 'POST'
  })
}
